package com.eam.common.domain;

import com.eam.core.annotation.Excel;
import com.eam.core.core.entity.BaseEntity;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.util.Date;

/**
 * 资产对象 eam_asset
 * 
 * @author eam
 * @date 2022-03-14
 */
public class EamAsset extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 资产id */
    private Long assetId;

    /** 资产编号 */
    @Excel(name = "资产编号")
    private String assetCode;

    /**  资产大类  */
    @Excel(name = " 资产大类 ")
    private String classify;

    /**  资产名称 */
    @Excel(name = " 资产名称")
    private String assetName;

    /**  价值 */
    @Excel(name = " 价值")
    private Long price;

    /**  开始使用日期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = " 开始使用日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date usedDate;

    /**  取得日期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = " 取得日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date acquireDate;

    /**  取得方式 */
    @Excel(name = " 取得方式")
    private String acquireType;

    /**  原值 */
    @Excel(name = " 原值")
    private Long originalValue;

    /** 管理部门 */
    @Excel(name = "管理部门")
    private Long manageDepartmentId;

    /** 所属部门 */
    @Excel(name = "所属部门")
    private Long ownerDepartmentId;

    /** 使用部门 */
    @Excel(name = "使用部门")
    private Long usedDepartmentId;

    /** 使用年限 */
    @Excel(name = "使用年限")
    private String serviceLife;

    /** 备注 */
    @Excel(name = "备注")
    private String memo;

    /** 管理人 */
    @Excel(name = "管理人")
    private Long managerId;

    /** 使用人 */
    @Excel(name = "使用人")
    private Long userId;



    public void setAssetId(Long assetId) 
    {
        this.assetId = assetId;
    }

    public Long getAssetId() 
    {
        return assetId;
    }
    public void setAssetCode(String assetCode) 
    {
        this.assetCode = assetCode;
    }

    public String getAssetCode() 
    {
        return assetCode;
    }
    public void setClassify(String classify) 
    {
        this.classify = classify;
    }

    public String getClassify() 
    {
        return classify;
    }
    public void setAssetName(String assetName) 
    {
        this.assetName = assetName;
    }

    public String getAssetName() 
    {
        return assetName;
    }
    public void setPrice(Long price) 
    {
        this.price = price;
    }

    public Long getPrice() 
    {
        return price;
    }
    public void setUsedDate(Date usedDate) 
    {
        this.usedDate = usedDate;
    }

    public Date getUsedDate() 
    {
        return usedDate;
    }
    public void setAcquireDate(Date acquireDate) 
    {
        this.acquireDate = acquireDate;
    }

    public Date getAcquireDate() 
    {
        return acquireDate;
    }
    public void setAcquireType(String acquireType) 
    {
        this.acquireType = acquireType;
    }

    public String getAcquireType() 
    {
        return acquireType;
    }
    public void setOriginalValue(Long originalValue) 
    {
        this.originalValue = originalValue;
    }

    public Long getOriginalValue() 
    {
        return originalValue;
    }
    public void setManageDepartmentId(Long manageDepartmentId) 
    {
        this.manageDepartmentId = manageDepartmentId;
    }

    public Long getManageDepartmentId() 
    {
        return manageDepartmentId;
    }
    public void setOwnerDepartmentId(Long ownerDepartmentId) 
    {
        this.ownerDepartmentId = ownerDepartmentId;
    }

    public Long getOwnerDepartmentId() 
    {
        return ownerDepartmentId;
    }
    public void setUsedDepartmentId(Long usedDepartmentId) 
    {
        this.usedDepartmentId = usedDepartmentId;
    }

    public Long getUsedDepartmentId() 
    {
        return usedDepartmentId;
    }
    public void setServiceLife(String serviceLife) 
    {
        this.serviceLife = serviceLife;
    }

    public String getServiceLife() 
    {
        return serviceLife;
    }
    public void setMemo(String memo) 
    {
        this.memo = memo;
    }

    public String getMemo() 
    {
        return memo;
    }
    public void setManagerId(Long managerId) 
    {
        this.managerId = managerId;
    }

    public Long getManagerId() 
    {
        return managerId;
    }
    public void setUserId(Long userId) 
    {
        this.userId = userId;
    }

    public Long getUserId() 
    {
        return userId;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("assetId", getAssetId())
            .append("assetCode", getAssetCode())
            .append("classify", getClassify())
            .append("assetName", getAssetName())
            .append("price", getPrice())
            .append("usedDate", getUsedDate())
            .append("acquireDate", getAcquireDate())
            .append("acquireType", getAcquireType())
            .append("originalValue", getOriginalValue())
            .append("manageDepartmentId", getManageDepartmentId())
            .append("ownerDepartmentId", getOwnerDepartmentId())
            .append("usedDepartmentId", getUsedDepartmentId())
            .append("serviceLife", getServiceLife())
            .append("memo", getMemo())
            .append("managerId", getManagerId())
            .append("userId", getUserId())
            .toString();
    }
}
